<style>
<!--
.tablebg_blue {
    background-color: #F2F7FD;
    border: 1px solid #D6E8FD;
}
.section_title {
    background: url("<?php echo $this->webroot;?>img/lam/diag_gris.gif") repeat scroll 0 0 transparent;
    border-bottom: 1px solid #D6E8FD;
    color: #3C5A9A;
    font-weight: bold;
    height: 26px;
    padding-bottom: 5px;
    width: 190px;
}
.floatleft {
    float: left;
}
.section_title {
    color: #3C5A9A;
    font-weight: bold;
}
#catmenu {
    border-bottom: 1px solid #EAF0F9;
    border-right: 5px solid #EEF4F9;
    border-top: 1px solid #FFFFFF;
    color: #162335;
    display: block;
    font: 11px Tahoma,Verdana;
    padding: 3px;
    text-decoration: none;
}
-->
</style>
<?php $categories = $this->requestAction('/categories/category_menu');?>
<?php 
	$icons = array('nhacua_datdai', 'dienthoai', 'xaydung', 'congnghethongtin', 'maytinh_linhkien',
		'oto_xemay', 'noithat_giadung', 'vieclam', 'dienmay_dientu', 'maymoc_thietbi', 'giaoducdaotao',
		'kinhdoanh', 'vanphongpham', 'inan_thietke', 'dulich', 'dichvukhac');
	$i = 0;
?>
<div class="hspace5"></div> 
<table width="100%" cellspacing="1" border="0" class="tablebg_blue" celpadding="0"> 
	<tr> 
		<td class="section_title"> 
			<div class="floatleft">
				<img width="3" height="15" src="<?php echo $this->webroot;?>img/lam/icon_pic.gif">
			</div> 
			<div style="padding-top: 3px;">&nbsp;&nbsp;Danh mục tin rao</div> 
		</td> 
	</tr> 
	<tr> 
		<td>  
		<?php foreach($categories as $cate):?>
		<a id="catmenu" href="<?php echo $this->webroot . 'posts/index/0/' . $cate['Category']['id'];?>">
			<span style="color: rgb(159, 136, 0); font-weight: bold;"> <img src="<?php echo $this->webroot . 'img/post/' . $icons[$i] . '.jpg'; $i++;?>"  border="0" height="16" width="16"> </span>
			&nbsp;&nbsp;<?php echo $cate['Category']['name']?>&nbsp;
			<font style="font-weight: normal; color: rgb(0, 128, 0);"> (<?php echo count($cate['Post']) ; ?>) </font> 
		</a>
		<?php endforeach;?>	
		</td>
	</tr> 
</table>